package com.woniu.utils.utils;


import cn.hutool.crypto.digest.MD5;

import java.nio.charset.StandardCharsets;

public class MD5Util {
    public static String md5(String text,String salt){
        int index = 0;
        int count = 2;
        MD5 md5 = new MD5(salt.getBytes(StandardCharsets.UTF_8), index, count);
        return md5.digestHex(text);
    }

    public static void main(String[] args) {
        System.out.println(MD5Util.md5("123456","jj"));
    }
}
